package cn.com.bo;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
    	try {  
            // 初始化Spring  
            ApplicationContext ctx = new ClassPathXmlApplicationContext("dubbo-consumer.xml");  
            IDemoService orderService = (IDemoService) ctx.getBean("demoService");
            orderService.sayHello("zhang");
          } catch (Exception ex) {  
            ex.printStackTrace();  
          }  
    }
}
